import React, { useState, useEffect } from 'react';
import { Table } from 'antd';
import styles from '../index.less';
import Footer from './Footer';
import {
  CONSTANT_TAB_KEY1, // 投资正式版
  CONSTANT_TAB_KEY2, // 调整版
  CONSTANT_TAB_KEY3, // 实际版
  EDITCOLUMNS,
} from '../utils/constant';

const AjustmentEditTable = props => {
  const { activeKey, isEdit, dataSource, columns } = props;

  useEffect(() => {}, []);

  return (
    <>
      <Table
        className={styles.PayBackModulus}
        columns={columns}
        dataSource={dataSource}
        size="middle"
        bordered
        pagination={false}
        scroll={{ x: columns.length * 80 + 80, y: 'calc(100vh - 295px)' }}
        footer={() => (
          <Footer
            unitSize={80}
            parentColumns={columns}
            parentData={dataSource}
            className={'ant-table-fixed'}
          />
        )}
      ></Table>
    </>
  );
};

export default AjustmentEditTable;
